AUX_SOURCE_DIRECTORY(. SOURCE)
ADD_EXECUTABLE(server ${SOURCE})
TARGET_LINK_LIBRARIES(server pthread)
